<div id="content">
	<php>
		$model = EbModel::getModel('VarPeople','Reportage');
		$urlname = EbController::$request->urlname;
	</php>
	
	<php:if is_null($urlname)>
	
		<h2 class="vp-title">Liste des reportages</h2>
	
		<widget:flashimagerotator folder="1" width="600" height="300" />
	
	<php:else />
	
		<php>$reportage = $model->selectByUrlName_1($urlname)</php>
			
		<php:if is_null($reportage)>
			<php>eb_redirect('/404');</php>
		</php:if>
	
		<div class="title">
			<h2 class="vp-title">#reportage->nom#</h2>
			<p>#reportage->date#</p>
			<p>#reportage->description#</p>
			<p>#2+2#</p>
		</div>
		
	</php:if>
</div>

<div id="sidebar">
	<div class="vp-menu" style="width:100%;">
	<ul>
		<widget:list dataProvider="$model->selectListing()" itemRenderer='<li><a href=\"$url\">$nom</a> - $date</li>' />
	</ul>
	</div>
</div>

<php>die();</php>